﻿using System;
using viForum.Classes;
using viForum.Controllers;
using visinia.SmartEngine;

public partial class Admin_Pages_viForum_Forums_Forums : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string GetCategoryTitle(int CategoryId)
    {
        Category category = CategoryController.GetCategory(CategoryId);
        if (category != null)
            return category.Title;
        return string.Empty;
    }

    public string GetLink(int forumid)
    {
        return SystemMenu.CallPage("viForum", "AddForum", "ForumId", forumid.ToString());        
    }
}
